const info = {
  name:'chanqi',
  age:18
}



type Method = 'GET' | 'POST'

function request(url:string, method:Method) {
  
}

// 
const options = {
  url:'www.baidu.com',
  method:'POST'
}

// request(options.url, options.method as Method)



const options1 = {
  url:'www.baidu.com',
  method:'POST'
} as const

request(options1.url, options1.method)